package com.example.checkgrouplist;

import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;
import android.widget.*;

public class Sub_Check_List extends Activity {
	EditText EName;
	EditText EDate;
	EditText ETime;
	EditText EAlram;
	
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.activity_sub_check_list);
	    
	    EName = (EditText)findViewById(R.id.first_E);
	    EDate = (EditText)findViewById(R.id.second_E);
	    ETime = (EditText)findViewById(R.id.third_E);
	    EAlram = (EditText)findViewById(R.id.fourth_E);
	    
	    Intent intent = getIntent();
	    String NameText = intent.getStringExtra("Name");
	    String DateText = intent.getStringExtra("Date");
	    String TimeText = intent.getStringExtra("Time");
	    String AlramText = intent.getStringExtra("Alram");
	    
	}
	
	public void EndTask(View v)
	{
		Intent temp = new Intent();
		temp.putExtra("NameOut", EName.getText().toString());
		temp.putExtra("DateOut", EDate.getText().toString());
		temp.putExtra("TimeOut", ETime.getText().toString());
		temp.putExtra("AlramOut", EAlram.getText().toString());
		setResult(RESULT_OK,temp);
		finish();
	}
	
	public void AddNewPic(View v)
	{
		
	}
	
	public void CancleTask(View v)
	{
		setResult(RESULT_CANCELED);
		finish();
	}

}
